import Mock from 'mockjs';
const count = 100;

let mallInfoList = [];
let coutractList = []; // 合同信息
let developerApplicationList = []; // 开发者申请
let entryManageList = []; // 入主管理
let customerList = []; // 客户管理
let cooperativePartnerList = [];
let cooperativePartnerGuanLianList = [];
let servicerList = []; // 服务者管理
let pullblackList = [];
let merchantApplyList = [];
for (let i = 0; i < count; i++) {
    mallInfoList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        userName: '@cname',
        userName1: '@cname',
        'mobile|1': ['15508765363', '12308765363', '18708765363'],
        'applyTime|1': ['2019-19-12', '2018-19-12', '2012-19-12'],
        'storeType|1': ['合伙人', '供应商', '服务者'],
        'hehuo|1': ['兆勇', 'lol'],
        'storeName|1': ['全网', '浮链', '海底捞'],
        'isDevelop|1': ['0', '1'],
        'numberStatus|1': ['正常', '异常'],
        'examineStatus|1': ['正常', '异常'],
        'isApply|1': ['是', '否'],
        'configureState|1': ['已启用', '已禁用'],
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'dongjie',
                 label: '冻结'
             },
             {
                 name: 'jingyingfanwei',
                 label: '经营范围'
             },
             {
                 name: 'guanlianjuese',
                 label: '关联角色'
             }, {
                 name: 'shezhi',
                 label: '分账比例设置'
             }, {
                 name: 'chongzhi',
                 label: '密码清空'
             }, {
                 name: 'jiaruheimingdan',
                 label: '加入黑名单'
             }
            ],
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'jiedong',
                 label: '解冻'
             },
             {
                 name: 'jingyingfanwei',
                 label: '经营范围'
             },
             {
                 name: 'guanlianjuese',
                 label: '关联角色'
             }, {
                 name: 'shezhi',
                 label: '分账比例设置'
             }, {
                 name: 'chongzhi',
                 label: '密码清空'
             }, {
                 name: 'jiaruheimingdan',
                 label: '加入黑名单'
             }
            ]
        ]
    }))
    coutractList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'contractNo': 'H100000' + i,
        'type': '入驻合同',
        'userName': '@cname',
        'storeName': '@word',
        'storeType|1': ['B2C店铺', 'O2O上门服务', 'O2O到店服务'],
        'LinkPeople': '@cname',
        'phone|1': ['15508765363', '12308765363', '18708765363'],
        'startTime': '@date(yyyy-MM-dd)',
        'endTime': '@date(yyyy-MM-dd)',
        'createOpeTime': '@date(yyyy-MM-dd)',
        'state|1': ['待商家盖章', '待平台盖章', '无效'],
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'View',
                 label: '查看',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             }
            ]
        ]
    }))
    customerList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'type': '客户管理',
        'userName': '@cname',
        'userNo': 'H100000' + i,
        'mobile|1': ['15508765363', '12308765363', '18708765363'],
        'buyNum|1': ['22', '1', '66'],
        'totalMoney|1': ['￥300', '￥400'],
        'actions|1': [
            [{
                 name: 'View',
                 label: '查看',
                 handleType: 'link'
             },
             {
                 name: 'lahei',
                 label: '加入黑名单',
                 handleType: 'alert'
             }
            ]
        ]
    }))
    developerApplicationList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'contractNo': 'H100000' + i,
        'type': '关联合作者',
        'userName': '@cname',
        'storeName': '@word',
        'storeType|1': ['B2C店铺', 'O2O上门服务', 'O2O到店服务'],
        'LinkPeople': '@cname',
        'phone|1': ['15508765363', '12308765363', '18708765363'],
        'startTime': '@date(yyyy-MM-dd)',
        'endTime': '@date(yyyy-MM-dd)',
        'createOpeTime': '@date(yyyy-MM-dd)',
        'state|1': ['待审核', '审核通过', '审核不通过'],
        'actions|1': [
            [{
                name: 'Audit',
                label: '审核',
                handleType: 'link'
            }]
        ]
    }))
    entryManageList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'contractNo': 'H100000' + i,
        'type': '入驻合同',
        'userName': '@cname',
        'storeName': '@word',
        'storeType|1': ['B2C店铺', 'O2O上门服务', 'O2O到店服务'],
        'LinkPeople': '@cname',
        'phone|1': ['15508765363', '12308765363', '18708765363'],
        'startTime': '@date(yyyy-MM-dd)',
        'endTime': '@date(yyyy-MM-dd)',
        'createOpeTime': '@date(yyyy-MM-dd)',
        'state|1': ['待审核', '审核通过', '审核不通过'],
        'actions|1': [
            [{
                 name: 'Audit',
                 label: '审核',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             }
            ]
        ]
    }))
    cooperativePartnerList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'userNo': 'H100000' + i,
        'userName': '@cname',
        'linkPeople': '@cname',
        'mobile|1': ['15508765363', '12308765363', '18708765363'],
        'code': '10000' + i,
        'num': '1',
        'createOpeTime': '@date(yyyy-MM-dd)',
        'state|1': ['待审核', '审核通过', '审核不通过'],
        'actions|1': [
            [{
                 name: 'dongjie',
                 label: '冻结',
                 handleType: 'alert'
             },
             {
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'guanlian',
                 label: '关联商家',
                 handleType: 'link'
             },
             {
                 name: 'setMoney',
                 label: '分账比例设置',
                 handleType: 'alert'
             },
             {
                 name: 'resetPwd',
                 label: '密码清空',
                 handleType: 'alert'
             },
             {
                 name: 'Delete',
                 label: '删除',
                 handleType: 'alert'
             }
            ]
        ]
    }))
    cooperativePartnerGuanLianList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'userNo': 'H100000' + i,
        'userName': '@cname',
        'linkPeople': '@cname',
        'mobile|1': ['15508765363', '12308765363', '18708765363'],
        'code': '10000' + i,
        'num': '1',
        'createOpeTime': '@date(yyyy-MM-dd)',
        'state|1': ['待审核', '审核通过', '审核不通过'],
        'actions|1': [
            [{
                 name: 'View',
                 label: '查看',
                 handleType: 'link'
             },
             {
                 name: 'quxiaoguanlian',
                 label: '取消关联',
                 handleType: 'alert'
             }
            ]
        ]
    }))
    merchantApplyList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        userName: '@cname',
        userName1: '@cname',
        'mobile|1': ['15508765363', '12308765363', '18708765363'],
        'applyTime|1': ['2019-19-12', '2018-19-12', '2012-19-12'],
        'storeType|1': ['合伙人', '供应商', '服务者'],
        'hehuo|1': ['兆勇', '全网'],
        'configureState|1': ['已启用', '已禁用'],
        'storeName|1': ['工品通', '斗山'],
        'isKaifa|1': ['是', '否'],
        'zhanghStatus|1': ['正常', '异常'],
        'aduitStatus|1': ['审核中', '待审核'],
        'isApply|1': ['0', '1'],
        'actions|1': [
            [{
                 name: 'Audit',
                 label: '审核',
                 handleType: 'link'
             },
             {
                 name: 'View',
                 label: '查看',
                 handleType: 'link'
             }
            ]
        ]
    }))
    servicerList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'contractNo': 'H100000' + i,
        'type': '商家管理',
        'userName': '@cname',
        'storeName': '@word',
        'customerStatus|1': ['0', '1'],
        'mobile|1': ['15645632123', '15845698563'],
        'actions|1': [
            [{
                 name: 'View',
                 label: '查看',
                 handleType: 'link'
             },
             {
                 name: 'lahei',
                 label: '加入黑名单',
                 handleType: 'alert'
             }
            ]
        ]
    }))
    pullblackList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'contractNo': 'H100000' + i,
        'type': '黑名单集合',
        'userName': '@cname',
        'userNo': '@word',
        'inte|1': ['10', '20'],
        'buyNum|1': ['10', '20'],
        'totalMoney|1': ['10', '20'],
        'from|1': ['济南', '烟台'],
        'hehuo|1': ['李', '王'],
        'customerStatus|1': ['正常', '异常'],
        'storeName|1': ['斗山', '商机'],
        'mobile|1': ['15508765363', '12308765363', '18708765363'],
        'joinTime': '@date(yyyy-MM-dd)',
        'startTime': '@date(yyyy-MM-dd)',
        'endTime': '@date(yyyy-MM-dd)',
        'createOpeTime': '@date(yyyy-MM-dd)',
        'actions|1': [
            [{
                 name: 'View',
                 label: '查看',
                 handleType: 'link'
             },
             {
                 name: 'yichu',
                 label: '移除黑名单',
                 handleType: 'alert'
             }
            ]
        ]
    }))
}

export default [{
                    path: '/api/getStoreList',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
                        const end = start + body.pageInfo.pageShow;
                        let data = {
                            return_code: 0,
                            list: [...mallInfoList].slice(start, end),
                            pageInfo: {
                                nowPage: 1, // 当前页数
                                pageShow: body.pageInfo.pageShow, // 每页显示条数
                                totalPage: count / body.pageInfo.pageShow, // 总页数
                                totalNum: count // 总条数
                            }
                        }
                        if (body.pageInfo.nowPage) {
                            return {
                                code: 0,
                                msg: '获取数据成功',
                                data: data
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                }, {
                    path: '/api/getCoutractList',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
                        const end = start + body.pageInfo.pageShow;
                        let data = {
                            return_code: 0,
                            list: [...coutractList].slice(start, end),
                            pageInfo: {
                                nowPage: 1, // 当前页数
                                pageShow: body.pageInfo.pageShow, // 每页显示条数
                                totalPage: count / body.pageInfo.pageShow, // 总页数
                                totalNum: count // 总条数
                            }
                        }
                        if (body.pageInfo.nowPage) {
                            return {
                                code: 0,
                                msg: '获取数据成功',
                                data: data
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                }, {
                    path: '/api/getContract',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            let memberInfo = {};
                            for (let i = 0; i < coutractList.length; i++) {
                                if (Number(body.uuid) === coutractList[i].uuid) {
                                    memberInfo = coutractList[i];
                                    break;
                                }
                            }
                            return {
                                code: 0,
                                msg: '',
                                data: {
                                    data: memberInfo,
                                    return_code: 0
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/addContract',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.userName) {
                            coutractList.unshift(body.formData);
                            return {
                                code: 0,
                                msg: '',
                                data: {
                                    return_code: 0
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/getDeveloperApplicationList',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
                        const end = start + body.pageInfo.pageShow;
                        let data = {
                            return_code: 0,
                            list: [...developerApplicationList].slice(start, end),
                            pageInfo: {
                                nowPage: 1, // 当前页数
                                pageShow: body.pageInfo.pageShow, // 每页显示条数
                                totalPage: count / body.pageInfo.pageShow, // 总页数
                                totalNum: count // 总条数
                            }
                        }
                        if (body.pageInfo.nowPage) {
                            return {
                                code: 0,
                                msg: '获取数据成功',
                                data: data
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                }, {
                    path: '/api/servicerList',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
                        const end = start + body.pageInfo.pageShow;
                        let data = {
                            return_code: 0,
                            list: [...servicerList].slice(start, end),
                            pageInfo: {
                                nowPage: 1, // 当前页数
                                pageShow: body.pageInfo.pageShow, // 每页显示条数
                                totalPage: count / body.pageInfo.pageShow, // 总页数
                                totalNum: count // 总条数
                            }
                        }
                        if (body.pageInfo.nowPage) {
                            return {
                                code: 0,
                                msg: '获取数据成功',
                                data: data
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/pullblackList',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
                        const end = start + body.pageInfo.pageShow;
                        let data = {
                            return_code: 0,
                            list: [...pullblackList].slice(start, end),
                            pageInfo: {
                                nowPage: 1, // 当前页数
                                pageShow: body.pageInfo.pageShow, // 每页显示条数
                                totalPage: count / body.pageInfo.pageShow, // 总页数
                                totalNum: count // 总条数
                            }
                        }
                        if (body.pageInfo.nowPage) {
                            return {
                                code: 0,
                                msg: '获取数据成功',
                                data: data
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/pullblackInfo',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            let info = {};
                            for (var i in pullblackList) {
                                if (Number(body.uuid) === pullblackList[i].uuid) {
                                    info = pullblackList[i];
                                    break;
                                }
                            }
                            return {
                                code: 0,
                                msg: '成功',
                                data: {
                                    return_code: 0,
                                    data: info
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/getEntryManageList',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
                        const end = start + body.pageInfo.pageShow;
                        let data = {
                            return_code: 0,
                            list: [...entryManageList].slice(start, end),
                            pageInfo: {
                                nowPage: 1, // 当前页数
                                pageShow: body.pageInfo.pageShow, // 每页显示条数
                                totalPage: count / body.pageInfo.pageShow, // 总页数
                                totalNum: count // 总条数
                            }
                        }
                        if (body.pageInfo.nowPage) {
                            return {
                                code: 0,
                                msg: '获取数据成功',
                                data: data
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                }, {
                    path: '/api/getCooperativePartnerList',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
                        const end = start + body.pageInfo.pageShow;
                        let data = {
                            return_code: 0,
                            list: [...cooperativePartnerList].slice(start, end),
                            pageInfo: {
                                nowPage: 1, // 当前页数
                                pageShow: body.pageInfo.pageShow, // 每页显示条数
                                totalPage: count / body.pageInfo.pageShow, // 总页数
                                totalNum: count // 总条数
                            }
                        }
                        if (body.pageInfo.nowPage) {
                            return {
                                code: 0,
                                msg: '获取数据成功',
                                data: data
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                }, {
                    path: '/api/getCooperGuanLian',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
                        const end = start + body.pageInfo.pageShow;
                        let data = {
                            return_code: 0,
                            list: [...cooperativePartnerGuanLianList].slice(start, end),
                            pageInfo: {
                                nowPage: 1, // 当前页数
                                pageShow: body.pageInfo.pageShow, // 每页显示条数
                                totalPage: count / body.pageInfo.pageShow, // 总页数
                                totalNum: count // 总条数
                            }
                        }
                        if (body.pageInfo.nowPage) {
                            return {
                                code: 0,
                                msg: '获取数据成功',
                                data: data
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                }, {
                    path: '/api/getMerchantApplyList',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
                        const end = start + body.pageInfo.pageShow;
                        let data = {
                            return_code: 0,
                            list: [...merchantApplyList].slice(start, end),
                            pageInfo: {
                                nowPage: 1, // 当前页数
                                pageShow: body.pageInfo.pageShow, // 每页显示条数
                                totalPage: count / body.pageInfo.pageShow, // 总页数
                                totalNum: count // 总条数
                            }
                        }
                        if (body.pageInfo.nowPage) {
                            return {
                                code: 0,
                                msg: '获取数据成功',
                                data: data
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/frozenMerchant',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            return {
                                code: 0,
                                msg: '冻结成功',
                                data: {
                                    return_code: 0
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/thaw',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            return {
                                code: 0,
                                msg: '解冻成功',
                                data: {
                                    return_code: 0
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                }, {
                    path: '/api/merchantResetPwd',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            return {
                                code: 0,
                                msg: '密码清空成功',
                                data: {
                                    return_code: 0
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/setMoney',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            return {
                                code: 0,
                                msg: '设置金额比例成功',
                                data: {
                                    return_code: 0
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                }, {
                    path: '/api/getCampList',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            return {
                                code: 0,
                                msg: '密码清空成功',
                                data: {
                                    return_code: '0',
                                    campList: [{
                                        title: 'parent 1',
                                        expand: true,
                                        selected: true,

                                        children: [{
                                                       title: 'parent 1-1',
                                                       expand: true,
                                                       children: [{
                                                                      title: 'leaf 1-1-1',
                                                                      disabled: true
                                                                  },
                                                                  {
                                                                      title: 'leaf 1-1-2'
                                                                  }
                                                       ]
                                                   },
                                                   {
                                                       title: 'parent 1-2',
                                                       expand: true,
                                                       children: [{
                                                                      title: 'leaf 1-2-1'
                                                                  },
                                                                  {
                                                                      title: 'leaf 1-2-1'
                                                                  }
                                                       ]
                                                   }
                                        ]
                                    }]
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/pullBlackOfMerchant',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            return {
                                code: 0,
                                msg: '拉黑成功',
                                data: {
                                    return_code: 0
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/getMerchantInfo',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            let info = {};
                            for (var i in merchantApplyList) {
                                if (Number(body.uuid) === merchantApplyList[i].uuid) {
                                    info = merchantApplyList[i];
                                    break;
                                }
                            }
                            return {
                                code: 0,
                                msg: '成功',
                                data: {
                                    return_code: 0,
                                    data: info
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/getServicerInfo',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            let info = {};
                            for (var i in servicerList) {
                                if (Number(body.uuid) === servicerList[i].uuid) {
                                    info = servicerList[i];
                                    break;
                                }
                            }
                            return {
                                code: 0,
                                msg: '成功',
                                data: {
                                    return_code: 0,
                                    data: info
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/removePullblack',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            let info = {};
                            for (var i in pullblackList) {
                                if (Number(body.uuid) === pullblackList[i].uuid) {
                                    info = pullblackList[i];
                                    break;
                                }
                            }
                            return {
                                code: 0,
                                msg: '移除成功',
                                data: {
                                    return_code: 0,
                                    data: info
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/getMerchantCancelInfo',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            let info = {};
                            for (var i in mallInfoList) {
                                if (Number(body.uuid) === mallInfoList[i].uuid) {
                                    info = mallInfoList[i];
                                    break;
                                }
                            }
                            return {
                                code: 0,
                                msg: '成功',
                                data: {
                                    return_code: 0,
                                    data: info
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/getEntryManageInfo',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            let info = {};
                            for (var i in entryManageList) {
                                if (Number(body.uuid) === entryManageList[i].uuid) {
                                    info = entryManageList[i];
                                    break;
                                }
                            }
                            return {
                                code: 0,
                                msg: '成功',
                                data: {
                                    return_code: 0,
                                    data: info
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/cancelGuanLian',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        if (body.uuid) {
                            return {
                                code: 0,
                                msg: '成功',
                                data: {
                                    return_code: 0
                                }
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                },
                {
                    path: '/api/customerList',
                    method: 'get',
                    handle ({
                        body
                    }) {
                        const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
                        const end = start + body.pageInfo.pageShow;
                        let data = {
                            return_code: 0,
                            list: [...customerList].slice(start, end),
                            pageInfo: {
                                nowPage: 1, // 当前页数
                                pageShow: body.pageInfo.pageShow, // 每页显示条数
                                totalPage: count / body.pageInfo.pageShow, // 总页数
                                totalNum: count // 总条数
                            }
                        }
                        if (body.pageInfo.nowPage) {
                            return {
                                code: 0,
                                msg: '获取数据成功',
                                data: data
                            }
                        } else {
                            return {
                                code: 401,
                                msg: '接口请求超时',
                                data: {}
                            }
                        }
                    }
                }

]
